<meta title="上架" args="item" width="700px"/>
<form class="p" s="form,nda,datac,valid" s-data="item" id="form" method="put"
      action="/api/seckillItem/instock/{item.id}">
    <textarea class="form-control" name="remark" s-valid-error="require()" placeholder="请输入下架原因"></textarea>
</form>
<script>
    S.meta.btns = [
        {
            name: "保存",
            style: "btn btn-primary",
            click: function () {
                S.confirm("确认下架吗？").done(function () {
                    $form.submit().done(function (rs) {
                        S.close(rs);
                    })
                })
            }
        },
        {
            name: "取消",
            style: "btn btn-default",
            click: function () {
                S.close();
            }
        }
    ]
</script>